#include<stdio.h>


int count(char* st)
{
int count =1;
char*s=st;
while(*s++!='\0'){
	if(*s==' ')count++;

}
return count;
}

void main(){

char a[]="I love you and thanks";
int t=count(a);
printf("%d",t);
}



